package com.spring.lifecycle.config;

import com.spring.lifecycle.bean.Boy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
// ${}赋值
@PropertySource(value = {"classpath:/application.properties"})
public class ValueConfig {

    @Bean
    public Boy boy(){
        return new Boy();
    }

}
